package com.guet.niit.Login.pojo;

import javafx.beans.property.LongProperty;
import javafx.beans.property.StringProperty;

public class UserData {
    private LongProperty userId;
    private StringProperty userName;
    private StringProperty password;


    public long getUserId() {
        return userId.get();
    }

    public LongProperty userIdProperty() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId.set(userId);
    }

    public String getUserName() {
        return userName.get();
    }

    public StringProperty userNameProperty() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public String getPassword() {
        return password.get();
    }

    public StringProperty passwordProperty() {
        return password;
    }

    public void setPassword(String password) {
        this.password.set(password);
    }

    public UserData(LongProperty userId, StringProperty userName, StringProperty password) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
    }

    public UserData() {
    }

    @Override
    public String toString() {
        return "UserData{" +
                "userId=" + userId +
                ", userName=" + userName +
                ", password=" + password +
                '}';
    }
}
